<?php
/**
 * Created by PhpStorm.
 * User: sunzexin
 * Date: 2018/1/7
 * Time: 13:17
 */

namespace App\Http\Traits;


use Illuminate\Http\Request;

trait SwiperTrait
{
    use BaseTrait;

    // 验证秘钥
    protected $loginSession;

    // 轮播图列表字符串
    protected $swiper_list_str;

    // 合作者ID
    protected $partner_id;

    // 供排序使用的ID字符串
    protected $swiper_id_str;

    // 轮播图ID
    protected $swiper_id;

    // 合作者key
    protected $key;
    // 分页大小
    protected $limit;
    // 分类ID
    protected $category_id;

    public function __construct(Request $request)
    {
        $this->loginSession = $request->input('loginSession', '');
        $this->swiper_list_str = $request->input('swiper_list_str', '');
        $this->partner_id = $request->input('partner_id', 0);
        $this->swiper_list_str = $request->input('swiper_list_str', '');
        $this->swiper_id_str = $request->input('swiper_id_str', '');
        $this->swiper_id = $request->input('swiper_id', 0);
        $this->key = $request->input('key', '');
        $this->limit = $request->input('limit', 0);
        $this->category_id = $request->input('category_id', 0);
    }
}